package com.dekarrin.scraton;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileNotFoundException;
import java.io.IOException;

public abstract class LogParser {
	protected BufferedReader logFileReader;

	public LogParser(String fileName) throws FileNotFoundException {
		logFileReader = new BufferedReader(new FileReader(fileName));
	}
	
	public void close() {
		try {
			logFileReader.close();
		} catch(IOException e) {
			System.err.println(e.getMessage());
		}
	}

	public abstract ScriptInstruction next();
}